import "@/styles/index.scss";
import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";
import router from "./router";
const app = createApp(App);

import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "dayjs/locale/zh-cn";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import Components from '@/components';

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

//@ts-ignore
app.use(ElementPlus, { locale: zhCn, size: "default", zIndex: 3000 });
app.use(createPinia());
app.use(Components);
app.use(router);
app.mount("#app");
